<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0063)http://user.huway.com/user/reg?callbackurl=http://www.huway.com -->
<html xmlns="http://www.w3.org/1999/xhtml"><style type="text/css" id="121975413089"></style><head><meta http-equiv="Content-Type">

<title>注册-卷云户外</title>
<meta name="keywords" content="户外线路,卷云户外网,户外网,户外活动,户外赛事,户外俱乐部,帐篷节,露营大会,驴友,驴友论坛">
<meta name="description" content="我们为您提供最优质、最全面户外休闲旅行线路的预定与结算服务。">
<link type="text/css" href="../css/login-regist/style.css" rel="stylesheet">
<link type="text/css" href="../css/login-regist/ui-dialog.css" rel="stylesheet">
<script type="text/javascript" src="../js/login-regist/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="../js/login-regist/placeholder.js"></script>
<script type="text/javascript" src="../js/login-regist/custominput.js"></script>
<script type="text/javascript" src="../js/login-regist/user.js"></script>
<script type="text/javascript" src="../js/login-regist/dialog-min.js"></script>
<script type="text/javascript" src="../js/login-regist/artdialog.js"></script>
<script type="text/javascript" src="../js/layer/layer.js"></script>
<script type="text/javascript">
      $(document).ready(function(){
        $('input[placeholder], textarea[placeholder]').each(function(){$(this).is('input')?$(this).iePlaceholder():$(this).iePlaceholder({onInput: false});});
        $('input').customInput();
      });
</script>
</head>
<body>
<div class="container">
            <a href="http://www.huway.com/" target="_blank" class="logo" style="margin-bottom: 30px">
              <img src="../images/Brand3.png" alt="" style="height: 70px;background-color: transparent;"><!-- logo -->
            </a>
    
   <div class="login_box">
       <form method="post" action="UserAction_regist.action" name="reg_form" id="reg_form">
          <div class="login_list">
             <div class="title">注册</div>
             <ul>
                <li><input type="text" name="userName" id="phone" value="" class="text text_yh" placeholder="用户名"></li>
                <li>
                    <input type="text" class="text text_yzm" id="authcode" name="authcode" value="" placeholder="验证码">
                    <a href="javascript:;" class="code_pic">
                        <!--若要点击图片刷新，重新得到一个验证码，要在后面加上个随机数，这样保证每次提交过去的都是不一样的path，防止因为缓存而使图片不刷新-->
        				<img src="createImageAction.action" width="100px" height="40px" onclick="this.src='createImageAction.action?a='+ Math.random()" title="点击图片刷新验证码"/>
                    </a> 
                </li>
                <%-- <li>
                    <input type="text" name="mobilecode" id="mobilecode" value="" class="text text_yh"  placeholder="手机验证码">
                    <input type="button" name="getsms" id="getsms" class="getcode" value="获取短信验证码" onclick="userSms();">
                </li> --%>
                
                <li>
                    <input type="password" name="password" id="password" class="text text_yh" placeholder="密码">
                </li>
                
             </ul>
             <div class="auto">
                <div class="custom-checkbox"><input type="checkbox" name="agreement" id="agreement" value="agreement" checked="checked"><label for="agreement">我已阅读<a target="_blank" href="http://user.huway.com/user/agree" class="blue">卷云户外网协议</a></label></div>
                <!-- http://user.huway.com/user/login?callbackurl=http://www.huway.com -->
                <span class="fr"><a href="login.jsp?callbackurl=regist.jsp" class="blue">登录</a> </span> 
             </div>
             <div class="clear"></div>
             <input type="hidden" name="callbackurl" id="callbackurl" value="http://www.huway.com">
             <input type="hidden" name="uniqid" id="uniqid" value="">
             <input type="hidden" name="counter" id="counter" value="">
             <input type="submit" class="btn" value="注册">
          </div>
       </form>
       <script type="text/javascript">
            //g_icounter = setInterval("smscounter()",1000);
            //refreshAuthimg($('#authcode_img'),'http://user.huway.com/user/authcode');
            jQuery(document).ready(function(){
            	var exist_flag = '${exist_flag}';
            	var authcode_flag = '${authcode_flag}';
            	if(authcode_flag!=null && authcode_flag == "true"){
            		layer.open({
					  title: '消息',
					  content: '验证码不对',
					  icon:0
					});  
            	}
	            if(exist_flag!=null && exist_flag == "true"){
	            	layer.open({
					  title: '消息',
					  content: '此用户已存在',
					  icon:0
					});  
	            }else if(exist_flag!=null && exist_flag == "false"){
	            	layer.open({
					  title: '消息',
					  content: '注册成功',
					  icon:1
					});
	            }
            });
       </script>
   </div>
   <div class="footer">
         </div>
</div>


</body></html>
